package cn.hicard.auth.dao;

import java.util.List;

import cn.hicard.auth.entity.MgRoleinfo;

/**
 * 角色信息管理DAO接口
 * @author zhangy
 *
 */
public interface RoleinfoDao {
	
	void save(MgRoleinfo role)throws Exception;
	
	void update(MgRoleinfo role)throws Exception;
	
	void delete(int pkRole)throws Exception;
	
	MgRoleinfo getByPk(int pkRole)throws Exception;
	
	List<MgRoleinfo> getAll()throws Exception;

	/**
	 * 查询用户拥有的角色信息
	 * @param pkUserinfo
	 * @return
	 */
	List<MgRoleinfo> getByUser(int pkUserinfo) throws Exception;
}
